Fixed model problem with mip
Finished hotfix mip_check.