fix: return index