Fix error with temp being 0.0