Fixes Newton algorithms