Sound device query bugfix.