Fixed undefined object error.
Merge pull request #1 from shepherdsm/master

Fixed undefined object error.