Fixed deletion bug.