fix mousewheel crash