bug fix vector clear missing.