fixed a minor bug where trace items were undefined