Fixed backward submap check in valve-selector.