fix calculation of dewpoint