fixed the next button bug.