Fix bug in first period temperature settings