Attempt to fix delete bug