bug in email notification for string formatting