fixed pagination issue

Fixed pagination page count issue