Fixes SIGSEGV (Segmentation fault) and makes vncserver usable (error by one)