fix delete problem bug