fixed IE8 code