fix bug "edit can overwrite others appointment"