Fix length computation for TXT

Fixes error "overflow packing txt" when using TXT with multiple entries...