fix the browse snd embed functionality