Fix calculation of negative temperature calculation