         return _.mapValues(credentialsByType, (credential, typeKey) =>
           credentialType = CredentialType[typeKey]
           uint8Key       = credential
-          return deserializeKey({ credentialType, uint8Key, @searchKeySerializer })
+          return deserializeKey({ credentialType, uint8Key, @cryptoServiceLoader })
         )
 
     hasInitialized: ->

        else
          return Promise.resolve()

    getAllCredentials: ->
      Promise.resolve()
      .then =>

      @cryptoKeyStorageApi = new CryptoKeyStorageApi()
      @searchKeyGenerator  = new SearchKeyGenerator()
      @searchKeySerializer = new SearchKeySerializer()
      @cryptoServiceLoader = new CryptoServiceLoader()

    # initializes keys if needed.
    ensureCredentialsInitialized: ( notifier = -> ) ->
