boolean flag bugfix

Repeated boolean flags were treated as value'd flags the second time