Fix the bug about the detection of a loop in a dynamical trajectory of
states.