fix shortcuts bugs for buffer switch