fix next page bug