Fixed deleting boxes bug.