diff --git a/src/android/io/branch/BranchSDK.java b/src/android/io/branch/BranchSDK.java
index <HASH>..<HASH> 100644
--- a/src/android/io/branch/BranchSDK.java
+++ b/src/android/io/branch/BranchSDK.java
@@ -6,6 +6,7 @@ import android.util.Log;
 
 import org.apache.cordova.CallbackContext;
 import org.apache.cordova.CordovaPlugin;
+import org.apache.cordova.PluginResult;
 
 import org.json.JSONArray;
 import org.json.JSONException;
@@ -373,8 +374,8 @@ public class BranchSDK extends CordovaPlugin
             Iterator<?> keys = contentMetaData.keys();
 
             while (keys.hasNext()) {
-                Log.d(LCAT, contentMetaData.getString(key));
                 String key = (String) keys.next();
+                Log.d(LCAT, contentMetaData.getString(key));
                 String value = contentMetaData.optString(key);
                 this.branchObj.addContentMetadata(key, value);
             }
[FIX] Missing library and typo