fix up ng-flag