Fix for bug when trying to start X