Fix broken flags