diff --git a/layouts/error.vue b/layouts/error.vue
index c7cdac1b637ff4d9a4156c83cb8b93c218a86ba6..2effdbb7552ff5a9977634316fc4a76eff31f658 100644
--- a/layouts/error.vue
+++ b/layouts/error.vue
@@ -49,7 +49,7 @@
       preserveAspectRatio="none"
       viewBox="0 0 3000 700"
       class="bottom-0 absolute"
-      style="margin-bottom: -24%"
+      style="margin-bottom: -500px"
     >
       <g transform="translate(1500,350) scale(1,1) translate(-1500,-350)">
         <linearGradient id="wave-color" x1="0" x2="1" y1="0" y2="0">
diff --git a/plugins/directives.client.js b/plugins/directives.client.js
index dfee340ffad88b4e8ac99bf40d21b8bf3117e495..3dfc7540aa0e6e4d679c443b40d4935cef9d689a 100644
--- a/plugins/directives.client.js
+++ b/plugins/directives.client.js
@@ -12,7 +12,7 @@ Vue.directive('focus', {
 Vue.directive('prevent-last-char-break', {
   inserted(el, binding) {
     const txt = el.innerHTML.trim()
-    if (/.*\W[?!:;]$/.test(txt))
+    if (/.*\s[?!:;]$/.test(txt))
       el.innerHTML = txt.substr(0, txt.length - 2) + '&nbsp;' + txt.substr(-1)
   },
 })