fixed import error if there is no mail specified