diff --git a/lib/helper.php b/lib/helper.php
index c57c83e1ef971b51dc5f19bb82da5d4c4d5ededb..fbca94dc7a8f020cdaf8816f8b20a983acfb4d2e 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";