implemented workaround of a problem with x-server for ubuntu