Fixed a few small problems in WavingFlagSample.