embed is causing page to load infinite loops