Fix for issue #54 & for registry.instantiate
#60
+18
−11
registry.instantiate
#60