Fixed problem retrieving route variable when listing emails.