fixed problem with sound alerts (fixes #284)