fixed ng-if usage