Fix for IE10 and IE11