fix model error