-fix bug in mainWindow (temperature)