Fix for IE 9, possibly 10