Fixed awkward deletion bug