fixing disabling-pagination issue