More reference fixes
Merge branch 'master'