fixed bug when member was deleted