After buffer switch hook added