fix Ctor in createClass