model error fix