Fix flag position