there is a bug when only one generation is kept for instance when the keep_trace is set to false.
there is a bug when only one generation is kept for instance when the keep_trace is set to false.