fix a bug with store tmp trace