Fix x/y order of coordinates