fix missing page in pagination bug