Fixed sound recording bugs