Fix IE8 range bug.