fixed bug in audio init