fixed issue with Trying to get property of non-object
Merge pull request #15 from baden03/master

fixed issue with Trying to get property of non-object