Attempt to fix thermal expansion integration.