Fix undefined index notice.