fix bug acyclic