diff --git a/script/update_openfpm b/script/update_openfpm
index 2be24580f5a4a5f472fd9fdab2b2e7ff55b253df..a23a2ab258c366005dd62b2e8402e1736cb79917 100755
--- a/script/update_openfpm
+++ b/script/update_openfpm
@@ -60,10 +60,10 @@ function update_openfpm()
     dir_prev_inst=$(cat dependencies_dir)
     for_opt=$(cat foward_options)
     if [ x"$dir_prev_inst" != x"" ]; then
-      dir_prev_inst="-i dir_prev_inst"
+      dir_prev_inst="-i $dir_prev_inst"
     fi
     if [ x"$foward_options" != x"" ]; then
-      foward_options="-i foward_options"
+      foward_options="-i $foward_options"
     fi
     ./install $dir_prev_inst $foward_options
   fi