Fix grid cells coordinates computations.