fix alias bug in ClassRegistry
fix alias bug in ClassRegistry