fix submit on edit bug