Error: incompatible indice

Please read this post on possible solutions