diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs
index 2c8cdc6b8c29eca0d9f11c8e9e8ee5e70521c4bd..dcae2757d30484eb69ea42b68a9664dc66d4ccc7 100755
--- a/src/freedombone-utils-nodejs
+++ b/src/freedombone-utils-nodejs
@@ -96,7 +96,6 @@ function mesh_install_nodejs {
     fi
 
     $mesh_install_nodejs_prefix apt-get -yq install nodejs
-    $mesh_install_nodejs_prefix apt-mark -q hold nodejs
 
     if [ -f "$rootdir/usr/bin/nodejs" ]; then
         cp "$rootdir/usr/bin/nodejs" "$rootdir/usr/bin/node"
@@ -106,6 +105,8 @@ function mesh_install_nodejs {
         cp "$rootdir/usr/bin/node" "$rootdir/usr/local/bin/node"
     fi
 
+    $mesh_install_nodejs_prefix apt-mark -q hold nodejs
+
     if [ ! -f "${rootdir}/usr/bin/node" ]; then
         if [ ! -f "${rootdir}/usr/local/bin/node" ]; then
             if [ ! -f "${rootdir}/usr/bin/nodejs" ]; then