fixed pagination for filtered categories