fixed parsing of temp