Solves a problem with activities pagination.