fix submit button bug