fixed error in creating activity from email