[FIX] mail: issue of action_id used before being defined. My bad.