Fixed a bug in how true/false flags are handled