generting code to fix IE