repair flags