Bugfix in email reminder