fixed dedeletion bug