Fix the temp max. we should use currect max temp