Fixed bug on getManagerForClass