fixing issue with xwindows system