fix ie error

Will this pull request work? Should fix #7