Adding fix for IE10 from separate pull request.