Fix UI in d3d9