diff --git a/AMDiS/src/io/detail/Arh3Reader.cc b/AMDiS/src/io/detail/Arh3Reader.cc
index 99958000c38fdfabf585a71df35a0a3058e90a2e..5af58116cc9af2e699b7467097822c4bce6a184d 100644
--- a/AMDiS/src/io/detail/Arh3Reader.cc
+++ b/AMDiS/src/io/detail/Arh3Reader.cc
@@ -681,7 +681,7 @@ namespace AMDiS { namespace io {
 		  cps == Cpsformat::NONE)
 	  ("Cannot read Arh2 file. Currently only support zlib and bzip2 compression.\n");
 #else
-	TEST_EXIT(cps == NONE)
+	TEST_EXIT(cps == Cpsformat::NONE)
 	  ("HAVE_COMPRESSION OFF. Cannot read compressed Arh2 file.\n");	
 #endif
       
diff --git a/AMDiS/src/io/detail/Arh3Writer.cc b/AMDiS/src/io/detail/Arh3Writer.cc
index e3675fc3f314b3a2c27cd22105df1a1ca8e25f32..e421fe10d99d4490b3cb27abcc1f95bcb7eb5c92 100644
--- a/AMDiS/src/io/detail/Arh3Writer.cc
+++ b/AMDiS/src/io/detail/Arh3Writer.cc
@@ -333,7 +333,7 @@ namespace AMDiS { namespace io {
 			     macroFile_nl;		  //macroFile
         string typeId = "sarh";
 #ifndef HAVE_COMPRESSION
-	cps = NONE;
+	cps = Cpsformat::NONE;
 #endif
         uint8_t *major = const_cast<uint8_t*>(&(AMDiS::io::Arh3Reader::MAJOR)); 
         uint8_t *minor = const_cast<uint8_t*>(&(AMDiS::io::Arh3Reader::MINOR));