Fixed bug being caused by direcX not being init