Correct the flags