Fix boundary condition when fetching negative coordinates.