fix references null issue
Merge branch 'master' of github.com:koobe/kgleditor