More conversions and minmaxLoc fix