fix minor issue with pagination