Fix bug with iframe not being loaded in-time