Minor chnges

MinX and MinY corrected