fixed bugs with write packing

no tag.length check, no textboxes, no references