Fix resetting of txstatus flags.