Try to avoid length null in IE8.