fix ET when switching to a new branch