diff --git a/routes/account.ts b/routes/account.ts
index e817a91dcfa5a9460acbe6e82e4fbe9318fb9c64..669424f32e8716471c834a8b0e40aeb9d79dc3a6 100644
--- a/routes/account.ts
+++ b/routes/account.ts
@@ -2,7 +2,6 @@ import fs from 'fs'
 import async from 'async'
 import bcrypt from 'bcryptjs'
 import * as passportSaml from 'passport-saml'
-import {v4 as uuidv4} from 'uuid';
 import dbconn from '../config/dbconn'
 import methods from '../functions/methods'
 import gitlab from '../functions/gitlab'
@@ -436,6 +435,7 @@ export = function (app:any, config:any, passport:any, lang:string) {
               if (!req.files) {
                 callback(null, newLogoFile)
               } else {
+                const uuidv4 = require('uuid/v4');
                 let fileName = uuidv4();
                 newLogoFile.mv(logoDir + fileName, function(err:any) {
                   newLogoFile = logoDir + fileName
@@ -532,6 +532,7 @@ export = function (app:any, config:any, passport:any, lang:string) {
                 callback(null, newLogoFile)
               } else {
                 newLogoFile = req.files.logo
+                const uuidv4 = require('uuid/v4');
                 let fileName = uuidv4();
                 newLogoFile.mv(logoDir + fileName, function(err:any) {
                   newLogoFile = logoDir + fileName