made this work in IE too.