fix cannot use teacher to create class.