bugfix for reverse boolean flag