fixed references to mode in phase2 and beginning of Salt.c