ctor fix, localClass == null fix