fix reference frame update issue which will casue crash
Merge pull request #1188 from ruil2/trace_tag

fix reference frame update issue which will casue crash