fixed traceanalysis bugs which came from nowhere