fixed trim d3ddevice