Fix grid pagination