Fixed undefined index notice.