fix iframe flapping issue