diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c
index e6c0150..2884d97 100644
--- a/backend/comics/comics-document.c
+++ b/backend/comics/comics-document.c
@@ -324,29 +324,41 @@ comics_check_decompress_command	(gchar          *mime_type,
 			comics_document->command_usage = UNZIP;
 			return TRUE;
 		}
+		comics_document->selected_command = 
+				g_find_program_in_path ("7z");
+		if (comics_document->selected_command) {
+			comics_document->command_usage = P7ZIP;
+			return TRUE;
+		}
+		comics_document->selected_command = 
+				g_find_program_in_path ("7za");
+		if (comics_document->selected_command) {
+			comics_document->command_usage = P7ZIP;
+			return TRUE;
+		}
 
 	} else if (!strcmp (mime_type, "application/x-cb7") ||
 		   !strcmp (mime_type, "application/x-7z-compressed")) {
 		/* 7zr, 7za and 7z are the commands from the p7zip project able 
 		 * to decompress .7z files */ 
-			comics_document->selected_command = 
-				g_find_program_in_path ("7zr");
-			if (comics_document->selected_command) {
-				comics_document->command_usage = P7ZIP;
-				return TRUE;
-			}
-			comics_document->selected_command = 
-				g_find_program_in_path ("7za");
-			if (comics_document->selected_command) {
-				comics_document->command_usage = P7ZIP;
-				return TRUE;
-			}
-			comics_document->selected_command = 
-				g_find_program_in_path ("7z");
-			if (comics_document->selected_command) {
-				comics_document->command_usage = P7ZIP;
-				return TRUE;
-			}
+		comics_document->selected_command = 
+			g_find_program_in_path ("7zr");
+		if (comics_document->selected_command) {
+			comics_document->command_usage = P7ZIP;
+			return TRUE;
+		}
+		comics_document->selected_command = 
+			g_find_program_in_path ("7za");
+		if (comics_document->selected_command) {
+			comics_document->command_usage = P7ZIP;
+			return TRUE;
+		}
+		comics_document->selected_command = 
+			g_find_program_in_path ("7z");
+		if (comics_document->selected_command) {
+			comics_document->command_usage = P7ZIP;
+			return TRUE;
+		}
 	} else {
 		g_set_error (error,
 			     EV_DOCUMENT_ERROR,
