fix delete problem