fix for switching lanes (js)