fix sync changes done in edit.inc.php at the end of request