Fix flag parsing.