mip generation fix