fix for mouse in VNC mode