Fixed most X11 errors