Fix relation in temp conversion helper routine