diff --git a/cg/cg2100.cpp b/cg/cg2100.cpp
index d84dc1bbf..f509b3a0d 100755
--- a/cg/cg2100.cpp
+++ b/cg/cg2100.cpp
@@ -1735,13 +1735,9 @@ void TPrimanota_application::ini2mask(TConfig& ini, TMask& msk, bool query)
             
           if (nr < 0)  
             tipo = ' ';
-					if (tipo == 'T')
-						numrig = nr;
           else
-          {                        
-            if (get_cgs_imp(nr).is_zero())
+            if (get_cgs_imp(nr).is_zero() || tipo == 'T')
               numrig = nr;
-          }  
         }  
       }