fix the flag