minor fix to index