diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index 529a82b830a22f56dd96a1896c36947f4ccdc2b4..fa6fe7913f248086f568b601eb49f9d1cc8af4a6 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -22,7 +22,7 @@
 
 require_once( 'lib_share.php' );
 
-if (!OC_Filesystem::is_dir('/Shared')) {
+if (OC_Filesystem::$loaded and !OC_Filesystem::is_dir('/Shared')) {
 	OC_Filesystem::mkdir('/Shared');
 }
 OC_Filesystem::mount('OC_Filestorage_Shared',array('datadir'=>'/'.OC_User::getUser().'/files/Shared'),'/'.OC_User::getUser().'/files/Shared/');
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 60d3f56a24cec22b82ffc19f9856bd25ff8d161d..8502cfc08bbdc331307cc0e945ecaa1b24c706b5 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -47,6 +47,7 @@ class OC_Filesystem{
 	static private $storages=array();
 	static private $mounts=array();
 	static private $storageTypes=array();
+	public static $loaded=false;
 	private $fakeRoot='';
 	static private $defaultInstance;
 
@@ -200,6 +201,7 @@ class OC_Filesystem{
 			return false;
 		}
 		self::$defaultInstance=new OC_FilesystemView($root);
+		self::$loaded=true;
 	}
 	
 	/**