Fixed box deletion bug.