fix email and sound alert setting bug