Correct descriptor loop detection for AutoSchemas