fixed email loop