Fixing PHP Notice: Undefined property: stdClass::,
Merge pull request #153 from ptasker/master

Fixing PHP Notice: Undefined property