Fix bug with sending delayed email