fix for reference errors
Merge pull request #3 from substack/master

fix for reference errors