Ajusted the changeKeys call in createRemoteInstance to update the key.