fix bad array subscript
0.5.8