Fixed the email subject line logic