fomosto: fixed a problem in timing params determination