fix $ionicPopover ref