allow write tlv instance + bug fix