fixed crash if MAIL was not set