fixing a bug in the mode ranking orchestrator