Fixed IE8 throwing unknown runtime error