fix identification x/y reversal