Fix syntax error in previous commit

undefined method `with_index' for .. Array
JFYI, I did not insisted to have it ugly, I just did not want to change it any more after I found out it works... (although it obviously didn't, maybe I had newer version of ruby installed)