Try to fix a bug about the detection of a loop in a dynamic trajectory
of state