Next button does not work sometimes