fix delete bug.