Fixes #6768 : boolean values at priority list should be valid

Fixes #6768