Fix PHP Notice errors
Merge pull request #15 from chernjie/master

Fix PHP Notice error