Edit to resolv bug Undefine model2