fixes undefined index notice
Merge pull request #4 from jazzsequence/undefined-index

undefined index, thanks @jazzsequence