fix reference frame update issue which will casue crash
Merge pull request #1189 from ruil2/trace_tag1.1

fix reference frame update issue which will casue crash