fix submit handler