fixed create class error messages