Fix notice email bug