lifecycle listener acts before codelist is removed