BUG: cyclic dependency