diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index 12fee750a6a8721a151ba831d19df0697fe508e0..eb7ba60cb9d17821b62cd74a3f1f68b0f387b8cb 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -154,9 +154,6 @@ class Proxy extends \OC_FileProxy {
 		$plainData = null;
 		$view = new \OC_FilesystemView('/');
 
-		// get relative path
-		$relativePath = \OCA\Encryption\Helper::stripUserFilesPath($path);
-
 		// init session
 		$session = new \OCA\Encryption\Session($view);
 
@@ -166,7 +163,7 @@ class Proxy extends \OC_FileProxy {
 			&& Crypt::isCatfileContent($data)
 		) {
 
-			$handle = fopen('crypt://' . $relativePath, 'r');
+			$handle = fopen('crypt://' . $path, 'r');
 
 			if (is_resource($handle)) {
 				while (($plainDataChunk = fgets($handle, 8192)) !== false) {