Fix the build: 'valid' is no longer used.