fix loader circular dependency detect