fixed a bug with sound stopping