Fix the bug of the next button.