fix bugs in IE8
Merge branch 'master' into gh-pages