fix error on edit sabmit