fix configuration after delete/insert
fix insert configuration problems
fix remaining double free issues from filter_del/configuration