Fixed optional references
Merge pull request #3 from hason/patch-2

Fixed optional references