Fixed major calculation error in the first-guess and TOA conversion.