fixed IE javascript error