fixed bug, if emailList is empty