diff --git a/core/js/oc-vcategories.js b/core/js/oc-vcategories.js
index c7b536a2a7d2afb94c26ec28510c16173d6e04bf..c99dd51f53a6fc30f7f1bac68ab85d64aa3a41ff 100644
--- a/core/js/oc-vcategories.js
+++ b/core/js/oc-vcategories.js
@@ -95,7 +95,7 @@ var OCCategories={
 			}
 		}).error(function(xhr){
 			if (xhr.status == 404) {
-				OC.dialogs.alert('The required file ' + OC.filePath(Categories.app, 'ajax', 'categories/rescan.php') + ' is not installed!', 'Error');
+				OC.dialogs.alert('The required file ' + OC.filePath(OCCategories.app, 'ajax', 'categories/rescan.php') + ' is not installed!', 'Error');
 			}
 		});
 	},