getindex fix