change StubIndex.get to StubIndex.safeGet