fix for multi delete bug