fix for temperature detection