fixing compatibility issue for IE8 and below for well