solve the resize thermo_material x-axis bug