fix temperature parsing