fix getindex