fix_decoding filters events that have an error in touch spec
if an error is found, the whole trace is removed
traces are modified so that the last event in a trace has type end and no others do