fix circular dependency detected error