fix some delete bugs
fix some delete bugs