Fix sound enabling and disabling (fixes #82)