Tab active conflict when reload initiate scheduler

I’ve units as separate tree panel. I’m trying to refresh scheduler with unit related appointments. Following is the code

function show_unit_events(data){
   scheduler.clearAll();
   scheduler.init('scheduler_here',new Date(curr_year,curr_month,curr_date),"week");		
   scheduler.parse(data, "json");
}

Above code refresh calendar perfectly with unit related events however active tab start conflicting.

You must call init only once.

Correct code will look as

   scheduler.clearAll();
   scheduler.setCurrentView(new Date(curr_year,curr_month,curr_date),"week");      
   scheduler.parse(data, "json");