Fix for the wrong x,y order, not picked up by tests as there was no
assertion