Fixed middle-click bug