fix ie7 for xtemplate