small fix for create class