diff --git a/src/Event/KanbanNodeInsertEvent.php b/src/Event/KanbanNodeInsertEvent.php
index f2f15b9..2814c0f 100644
--- a/src/Event/KanbanNodeInsertEvent.php
+++ b/src/Event/KanbanNodeInsertEvent.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\views_kanban\Event;
 
-use Symfony\Component\EventDispatcher\Event;
+use Symfony\Contracts\EventDispatcher\Event;
 use Drupal\Core\Entity\EntityInterface;
 
 /**
diff --git a/views_kanban.module b/views_kanban.module
index df8a37d..13fb249 100644
--- a/views_kanban.module
+++ b/views_kanban.module
@@ -1,5 +1,6 @@
 <?php
 
+use Drupal\Core\Entity\EntityInterface;
 /**
  * @file
  * Kanban Views module help and theme functions.
@@ -39,7 +40,7 @@ function views_kanban_theme($existing, $type, $theme, $path) {
  * @param \Drupal\Core\Entity\EntityInterface $entity
  *   Entity.
  */
-function event_subscriber_kanban_node_insert(Drupal\Core\Entity\EntityInterface $entity) {
+function event_subscriber_kanban_node_insert(EntityInterface $entity) {
   // Dispatch the node insert kanban event so that subscribers can act accordingly.
   \Drupal::service('event_dispatcher')
     ->dispatch(KanbanNodeInsertEvent::KANBAN_NODE_INSERT, new KanbanNodeInsertEvent($entity));
diff --git a/views_kanban.theme.inc b/views_kanban.theme.inc
index c5d5d1a..1e29cfb 100644
--- a/views_kanban.theme.inc
+++ b/views_kanban.theme.inc
@@ -1,5 +1,6 @@
 <?php
 
+use Drupal\workflow\Entity\WorkflowState;
 /**
  * @file
  * Theme for Kanban views.
@@ -101,7 +102,7 @@ function template_preprocess_views_view_kanban(array &$variables) {
     $field_type = $status_field->getFieldDefinition()->getType();
     if ($field_type == 'workflow' && !empty($field_status_settings['workflow_type'])) {
       $workflow_type = $field_status_settings['workflow_type'];
-      $states = \Drupal\workflow\Entity\WorkflowState::loadMultiple([], $workflow_type);
+      $states = WorkflowState::loadMultiple([], $workflow_type);
       $status_values = [];
       foreach ($states as $state) {
         if ($state->isActive() && strpos($state->id(), 'creation') === FALSE) {
@@ -269,7 +270,7 @@ function template_preprocess_views_view_kanban(array &$variables) {
             ->generateAbsoluteString($thumbnailAvatar);
         }
         else {
-          $assign['avatar'] = file_create_url($thumbnailAvatar);
+          $assign['avatar'] = \Drupal::service('file_url_generator')->generateAbsoluteString($thumbnailAvatar);
         }
       }
       $variables['rows'][$id]['assign'][] = $assign;
