diff --git a/vim-update.sh b/vim-update.sh
index 6bb6c7c..b1170fd 100755
--- a/vim-update.sh
+++ b/vim-update.sh
@@ -163,7 +163,7 @@ if [ $CHANGES -ne 0 ]; then
        fedpkg build
        if [ $? -eq 0 ]; then
          # if branch isn't master or branch is enabled in bodhi, create update
-         if [ $branch != "master" || "${bodhi_enabled[@]: $bodhi_enabled_index: 1}"=="1" ]; then
+         if [ $branch != "master" || ${bodhi_enabled[@]: $bodhi_enabled_index: 1} -eq 1 ]; then
            bodhi updates new --user zdohnal --type enhancement --notes "The newest upstream commit" --request testing --autokarma --stable-karma 3 --unstable-karma -3 vim-${UPSTREAMMAJOR}.${LASTPLFILLED}-1.${releases[@]: $release_index: 1}
          fi
        else
diff --git a/vim.spec b/vim.spec
index 21cf019..e5f121f 100644
--- a/vim.spec
+++ b/vim.spec
@@ -24,7 +24,7 @@ Summary: The VIM editor
 URL:     http://www.vim.org/
 Name: vim
 Version: %{baseversion}.%{patchlevel}
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: Vim
 Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
 Source1: vim.sh
@@ -730,6 +730,9 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
 %{_datadir}/icons/locolor/*/apps/*
 
 %changelog
+* Wed Feb 28 2018 Zdenek Dohnal <zdohnal@redhat.com> - 2:8.0.1543-2
+- fix vim-update.sh - bodhi update wasn't created
+
 * Tue Feb 27 2018 Karsten Hopp <karsten@redhat.com> 8.0.1543-1
 - patchlevel 1543