Fix bug in new email extraction routine