refactored some model error.