next page bug fix