Fixed view-model iteration during command look up.