Fix syntax error in previous commit

undefined method `with_index' for .. Array
Merge pull request #257 from dirkmueller/master

Fix syntax error in previous commit