fix current tab method