Bug fixes (mostly for IE8)