Fix for IE10 compatibilty mode