Fix grid drawing