fixed error with model