fixed D3D loading issue