Fix issue where embedded iframe is shown then hidden