Fix grid layout.