Fixed class create error message