Fixes #2911 boolean options were wrongly checked