Look for aliases only when id is null.