fix email sender bug