next Page bug fix