Fixing initialization of ymin, xmax and ymax variables

I assume this is some sort of copy and paste error