fix delete bug