fix #563 for display none iframe