Fix DirectX error hopefully.