Fixed typos in FlagsComponent causing PHP notices and warnings