How to properly unfold a flag