Fixed issues with flags.txt