fixed deleting issue