fixed error causing rails to crash
Merge pull request #82 from nathantross/error

fixed error causing rails to crash