avoid session closing after buf switch in src window