Fixed quote deletion bug