fixing error in flag