fixed getindex