diff --git a/jsc_custom/handler/share_handler.py b/jsc_custom/handler/share_handler.py
index 7ba14c7404ac4d350e7748deee08182438805741..d368334a489ce6060890c4493f155bde164d87a7 100644
--- a/jsc_custom/handler/share_handler.py
+++ b/jsc_custom/handler/share_handler.py
@@ -187,7 +187,7 @@ class R2DHandler(SpawnHandler):
         # Check if persistent storage is required
         if len(arguments_dict_lower.get("localstoragepath", [])) > 0:
             user_options["storage"] = {
-                "localstoragepath": arguments_dict_lower.get("datadir")[0].decode(
+                "localstoragepath": arguments_dict_lower.get("localstoragepath")[0].decode(
                     "utf-8"
                 )
             }