Fixes bug pagination.