Try to fix numerical instability