Fix some iFrame bugs