Fixed broken search due to using ng-if rather than ng-show