fix to work in internet explorer