DAO loop detection