diff --git a/aur/PKGBUILD b/aur/PKGBUILD
index 690ffd7e11b3efc72edb48d4c27fdb5041a1b348..6090748e4425a308cd205940722f0e9211a33ce5 100644
--- a/aur/PKGBUILD
+++ b/aur/PKGBUILD
@@ -3,8 +3,8 @@
 # Mirror: https://github.com/recolic/shared-bootdir-helper
 
 pkgname=shared-bootdir-helper
-pkgver=1.2
-pkgrel=3
+pkgver=1.3.1
+pkgrel=1
 pkgdesc="Allow multiple linux installations to share the same /boot directory, even with different kernel parameters. "
 url="https://git.recolic.net/root/$pkgname"
 license=("GPL3")
diff --git a/src/shared-bootdir-helper-multi-kparam.sh b/src/shared-bootdir-helper-multi-kparam.sh
index 595922f400f4933d3ae8c595876af3f098ad81a0..50f434b70afaa1bcb2df86505c4b681df7a4fcfb 100755
--- a/src/shared-bootdir-helper-multi-kparam.sh
+++ b/src/shared-bootdir-helper-multi-kparam.sh
@@ -26,7 +26,7 @@ while IFS= read -r line; do
         for hostname in "${!map_hostname_to_kparam[@]}"; do
             # Assuming that, the kimg filename contains "vmlinuz-xxx-$hostname ", in lowercase. That's important! 
             [[ "$line" == *"-$hostname "* ]] &&
-                echo "$line" | sed "s|-$hostname .*$|-$hostname ${map_kimage_to_kparam[$hostname]}|g" >> "$tmpfile" &&
+                echo "$line" | sed "s|-$hostname .*$|-$hostname ${map_hostname_to_kparam[$hostname]}|g" >> "$tmpfile" &&
                 matched=1 && 
                 break
         done