fixed getByIndex key returns