Fixed swapped coordinate bug.