fix flag formatting