Fix grid rendering