fix next page loop back