fixed next button bug