Bug: had x and y swapped in an important place

Oops, sorry.