fix flag layout