fix to index