nonconsecutive clusters 10
added fix for a case with short rasters