Fixed bug in RegisterType and Resolve