Fixed a bug

It was doing x1,x2,y1,y2 instead of x1,y1,x2,y2