Fixed logical error which picked wrong root for xi. Now it is just like before.
Fixed algebraic typo.