Fixed undefined property error in PHP5.5.
Merge pull request #4 from wakuworks/master

Fixed undefined property error in PHP5.5.