Thermal Error Reduction by Topology Optimization