cleanup observations
update stats first to avoid inplace encoding issue