Remove flag modifications.