diff --git a/src/Fug.cpp b/src/Fug.cpp
index 5fc8e2074c0bdcff1d07ceb665efd976fbfdb9d5..4ca0721804a30229e63b01831c71a45ac86a3bd1 100644
--- a/src/Fug.cpp
+++ b/src/Fug.cpp
@@ -912,6 +912,7 @@ string Fug::read_Fug() {
 
   i = 0;
   while (strout[i] == 'E') {
+    if (strout[i+3] == '\n' || strout[i+3] == '\r' || strout[i+3] == '\0') i++;
     i += 3;
   }
   strout_filt.resize(strout.length() - i);