Fix action email bug