fixed scary deletion bug