diff --git a/votingapi.drush.inc b/votingapi.drush.inc
index 800fa98..721ad57 100644
--- a/votingapi.drush.inc
+++ b/votingapi.drush.inc
@@ -167,7 +167,8 @@ function drush_votingapi_recalculate($entity_type = 'node', $entity_id = NULL) {
   }
 
   foreach ($votes as $vote) {
-    votingapi_recalculate_results($vote['entity_type'], $vote['entity_id'], TRUE);
+    $manager = Drupal::service('plugin.manager.votingapi.resultfunction');
+    $manager->recalculateResults($vote['entity_type'], $vote['entity_id'], 'vote');
   }
 
   drush_log($message, 'success');
