diff --git a/xcode/OLMKitTests/OLMKitTests.m b/xcode/OLMKitTests/OLMKitTests.m
index a7280f8432fcaf2618d968d3e25a5748b5c0009b..5459c8578920a2472ce0066fb02b1c9cd8a61829 100644
--- a/xcode/OLMKitTests/OLMKitTests.m
+++ b/xcode/OLMKitTests/OLMKitTests.m
@@ -106,7 +106,7 @@
     
     OLMAccount *bob2 = [NSKeyedUnarchiver unarchiveObjectWithData:bobData];
     NSDictionary *bobIdKeys2 = bob2.identityKeys;
-    NSDictionary *bobOneTimeKeys2 = bob.oneTimeKeys;
+    NSDictionary *bobOneTimeKeys2 = bob2.oneTimeKeys;
     
     XCTAssertEqualObjects(bobIdKeys, bobIdKeys2);
     XCTAssertEqualObjects(bobOneTimeKeys, bobOneTimeKeys2);