Fix swap of y min/max from extent