fix flags positioning