Handling negative temperatures