Work around IE8 limitations