Fix bug in email confirmation scripts.