submit button bug fix