diff --git a/htmlawed.module b/htmlawed.module
index ce28111..b9e1d09 100644
--- a/htmlawed.module
+++ b/htmlawed.module
@@ -23,7 +23,7 @@ function htmlawed_help($route_name, RouteMatchInterface $route_match) {
     $module_path = \Drupal::service('extension.list.module')->getPath('htmlawed');
   }
   else {
-    $module_path = drupal_get_path('module', 'htmlawed');
+    $module_path = \Drupal::service('extension.list.module')->getPath('htmlawed');
   }
   if (function_exists('libraries_load') && ($library = libraries_load('htmLawed')) && !empty($library['loaded']) && function_exists('hl_version')) {
     $doc_path = libraries_get_path('htmLawed') . '/';
