fix trace snippet