fix email notification