[FIX] fixed numerical instability