modify the npe for ScheduledMailTask