Solve cyclic references