fixed infinit loop in next_planning turn