fix reference frame update issue which will casue crash
Merge pull request #1190 from ethanhugg/ff33-refframe

fix reference frame update issue which will casue crash