fix for finite difference newton solver