fixed sound pause function