Suspecting $getIndex doesn't get updated or get overridden