minor fix at index