diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index 55254ccd662284326b5005a4154fcb19bddfdfe8..271819782b708171133ec52a80ad77f19729db85 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -35,6 +35,7 @@ class OC_Filestorage_Shared extends OC_Filestorage {
 		if (!OC_Filesystem::is_dir($this->datadir)) {
 			OC_Filesystem::mkdir($this->datadir);
 		}
+		$this->datadir .= "/";
 	}
 	
 	public function getInternalPath($path) {
diff --git a/lib/util.php b/lib/util.php
index 4b49d1319b95c0047b0786529496a773348a16e8..f4ca879a9bc589f6af9486ab447c4918a3fad650 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -54,7 +54,7 @@ class OC_Util {
 			OC_Filesystem::mount($rootStorage,'/');
 
 			// TODO add this storage provider in a proper way
-			$sharedStorage = OC_Filesystem::createStorage('shared',array('datadir'=>'/'.OC_User::getUser().'/files/Shared/'));
+			$sharedStorage = OC_Filesystem::createStorage('shared',array('datadir'=>'/'.OC_User::getUser().'/files/Shared'));
 			OC_Filesystem::mount($sharedStorage,'/'.OC_User::getUser().'/files/Shared/');
 
 			$CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root";