Fixed typo in flag parsing