Fixing MSLP calculation bug