Fixed a missing function (refactoring error) and the sound issue with firefox.