fixed trace parsing bug