fixed bug when editing or deleting units