fix clearing of trace lines