Fixed issues in sendReminderEmail