diff --git a/postgresql-details-html.lsp b/postgresql-details-html.lsp
index 905a05702ea7f0b43f6321bbb8859cac3d61b06d..778a3bf77f8f5b318b290443f618c9837975b776 100644
--- a/postgresql-details-html.lsp
+++ b/postgresql-details-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/postgresql-listfiles-html.lsp b/postgresql-listfiles-html.lsp
index 8d80708c27f30c71045fb9ec2552b557110fa00c..bc2728ada7f3c3ac4b0b7605a5e928495aa76d54 100644
--- a/postgresql-listfiles-html.lsp
+++ b/postgresql-listfiles-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/postgresql-model.lua b/postgresql-model.lua
index df259d814e03fae994f6206be9963bf76091f3f8..1c492f342ebf4eeaee296689b7a898f5f3eb4c30 100644
--- a/postgresql-model.lua
+++ b/postgresql-model.lua
@@ -1,7 +1,7 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
+modelfunctions = require("modelfunctions")
fs = require("acf.fs")
format = require("acf.format")