Fixed let &switchbuf line