Add brackets for math in pagination.