corrected bug in the Newton system