Fixes typos with the X11 binding which were causing bugs.