Fix undefined properties in IE 8 and earlier.