diff --git a/lib/base.php b/lib/base.php
index c97700b3dbfc311d197e8d1a31f8ab733c94bd8d..66d2d400285aadaeea6149f67af0758056b66c78 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -488,6 +488,7 @@ class OC{
 			return;
 		}
 		try {
+			OC_App::loadApps();
 			OC::getRouter()->match(OC_Request::getPathInfo());
 			return;
 		} catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) {