Fixed a bug when launching vnc