fix unevaluated index bug
Merge pull request #217 from sn6uv/indexbug

fix unevaluated index bug