Correct $index reference
Merge pull request #10 from bnoon/master

Correct $value reference