Fix a sound error message and some coding style.