fix for view not rendering in test email