Bug fixed on submit button sample