fix i-frame problems