Fix middle-click issue