Bug in MutSigSV_1.4 ?

I get an error when trying to to "category discovery" for 1 < categ_flag < 7.
In particular, the variable "method" (and "ncategs") remain undefined in lines 398-404 (see below)

elseif categ_flag>1
% requested category discovery
if categ_flag>6, fprintf('NOTE: maximum categories that can be discovered is 6.\n'); categ_flag=6; end
if ~can_do_category_discovery
error('unable to perform category discovery, because %s.',reason);
elseif isnan(categ_flag)

So it crashes at line 420.

Is there a way to fix this using just the MATLAB compiler?

Thanks in advance.