fix reference error issue #30
Merge pull request #31 from jarofghosts/master

fix reference error issue #30