Fixed temperature bug