diff --git a/lib/base.php b/lib/base.php
index 1c6cc70b0e882187bfaea27c531342a24e953399..679acdb6e5d1e5a9596facbb4aae1af2102aa7b0 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -75,7 +75,7 @@ class OC{
 			/** @TODO: Remove this when necessary
 			 Remove "apps/" from inclusion path for smooth migration to mutli app dir
 			*/
-			$path = preg_replace('/apps\//', '', OC::$CLASSPATH[$className]);
+			$path = str_replace('apps/', '', OC::$CLASSPATH[$className]);
 			require_once $path;
 		}
 		elseif(strpos($className, 'OC_')===0) {