Fix grid offsets