Fixes max value detection in inclusion and exclusion validators