Fixing thermometer style bug