Problem switching audio?

why is it doing this? the function is correct…