diff --git a/lib/helper.php b/lib/helper.php
index 281761c590bc78395a203097ff65da2d43d08bf3..9faf8861161b944d038c1471940e3bf570ab3c15 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -42,7 +42,7 @@ class OC_HELPER {
 		}
 		
 		// Check if the app is in the app folder
-		if( file_exists( $SERVERROOT . '/apps/'. $app . $file )){
+		if( file_exists( $SERVERROOT . '/apps/'. $app )){
 			return $WEBROOT . '/apps/' . $app . $file;
 		}
 		return $WEBROOT . '/' . $app . $file;