Fixed setting of flags.txt