strip _all_ occurances of bad flags
Merge pull request #100 from v4hn/bad_flags-fixup

strip _all_ occurances of bad flags