fix the no email flag on history