fix notice "undefined index"

fix notice "undefined index"
Merge pull request #29 from AgelxNash/patch-1

fix notice "undefined index"