fix vnc enter invalid bug