Fix to initialization with DX11