fix a tiny bug in function ab/switch-to-shell-buffer