Fix small error in pagination