Fix invsible buffer id in insert mode