fix variable assignment for txtype 21