remove un-needed code to fix exception on FF & IE