GetIndex fixed.