Fix reversed coordinates