fixed bug with negative temps