prevent ng-if causing new scope error