Fix grid calculation