fix grid pagination