fixed the slow deletion bug, resolved #61