fix minor bug in default pagination