Fix flag to level