fix circular reference