Fixed possible issue with IE8 and IE9