fix errors on edit part