fixed another deletion bug