fixes typo in idexing var