- fixed issue with class init function