diff --git a/pub/lib/manip.cpp b/pub/lib/manip.cpp
index 9e3961de59f3c81577e5c45f1df61aa918b049bf..6ce62113e199dc371ddfe94389d005fdcd921f9f 100644
--- a/pub/lib/manip.cpp
+++ b/pub/lib/manip.cpp
@@ -468,6 +468,8 @@ void NManip::slices_rebin()
     static string jSel = "";
     JSelAsk( "Start groups at spectra", JSel );
     while ( ROlo fin = fiter.get() ) {
+        if( fin->nJ()<=1 )
+            throw S("Only one slice in file");
         ROld fd = R2D( fin );
         ROlc fc = R2C( fin );
         POlo fout( fin->new_olo() );