fixed bug on next button