Fixes to negative temperature