fix some delete bug but some other always exits