fixing bulk deletion bug