fix a retarded bug with FlagSet.clearFlags