Use #replace instead of #clear/#concat