fix a case where bot could restart due to cycle method call