Fixed bug with X11.