fix parsing bug for celsius