diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js
index ca42c48bc..f263eb5ac 100644
--- a/files/assets/js/chat.js
+++ b/files/assets/js/chat.js
@@ -80,7 +80,7 @@ socket.on('speak', function(json) {
document.getElementsByClassName('userlink')[0].classList.remove('d-none')
document.getElementsByClassName('avatar')[0].classList.remove('d-none')
document.getElementsByClassName('avatar-pic')[0].src = json['avatar']
- if (json['hat']) document.getElementsByClassName('avatar-hat')[0].src = json['hat']
+ if (json['hat']) document.getElementsByClassName('avatar-hat')[0].src = `/i/hats/${json['hat']}?v=3`
document.getElementsByClassName('userlink')[0].href = '/@' + json['username']
document.getElementsByClassName('userlink')[0].style.color = '#' + json['namecolor']
document.getElementsByClassName('time')[0].classList.remove('d-none')
diff --git a/files/templates/chat.html b/files/templates/chat.html
index 92e44502b..47a2c33ba 100644
--- a/files/templates/chat.html
+++ b/files/templates/chat.html
@@ -222,6 +222,6 @@
-
+