fix bug create class