Good catch. It should be "InstId > deps[rep]"