Fixed mip calculation.