Made a hack to fix bulk delete function.