Error using sprintf Function is not defined for 'matlab.ui.Figure' inputs.

 Hi!
I had used REST before but since updating to Matlab 2014 and Yosemite I keep getting this error (below) and I am not able to use the slice viewer. 
Any thoughts? Thanks!
V

Error using sprintf
Function is not defined for 'matlab.ui.Figure' inputs.
 
Error in rest_sliceviewer>InitControls (line 835)
set(theFig, 'DeleteFcn', sprintf('rest_sliceviewer(''Delete'', %g);', theFig)  );
 
 
Error in rest_sliceviewer (line 69)
REST_SliceViewer_Cfg.Config(1+GetDisplayCount(REST_SliceViewer_Cfg))
                        =InitControls(AFilename, ACallback);
 
 
Error in rest_sliceviewer (line 33)
rest_sliceviewer('ShowImage',''); %by Default, I show a black brain
                image
 
 
Error in rest_Utilities_gui>btnSliceViewer_Callback (line 112)
rest_sliceviewer;
 
 
Error in gui_mainfcn (line 95)
        feval(varargin{:});
 
Error in rest_Utilities_gui (line 28)
    gui_mainfcn(gui_State, varargin{:});
 
 
Error while evaluating UIControl Callback