prevent ido switching to another frame when switching buffers