fix model check errors