Avoid undefined index error.