was a type error not index