fix ie bug (from Etienne Dion git pull request)