fix mutiple trace bug