Fixed email sender bug