set negative temp max to 0 even if it is larger than max