fixed pagination after refresh