Fix a weird bug
Handle email='' in mail script