diff --git a/lib/helper.php b/lib/helper.php
index 009e961397b9d970d6360c4aa5d4072a1a265861..da566a318acd179de2a98651f87f249be9c36186 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -60,8 +60,8 @@ class OC_HELPER {
 		global $SERVERROOT;
 		global $WEBROOT;
 		// Check if the app is in the app folder
-		if( file_exists( "$SERVERROOT/apps/img/$app/$image" )){
-			return "$WEBROOT/apps/img/$app/$image";
+		if( file_exists( "$SERVERROOT/apps/$app/img/$image" )){
+			return "$WEBROOT/apps/$app/img/$image";
 		}
 		if( !empty( $app )){
 			return "$WEBROOT/$app/img/$image";