Fix coordinate switch mistake