fix models error