fixed last of mode[0] references in salt and newton.c