fixed some connection issues when using xorg driver mode