Fix reference-to-local-object issue
Merge pull request #14 from voxelinc/reffix

Fix reference-to-local-object issue