How to avoid losing the flag from your Falker burgee when you capsize

If you use burgees, like Falkers, which use a little plastic cap to retain the flag on the shaft, the flag can easily be lost in a capsize - unless you know how to stop this happening.