diff --git a/conan-install.sh b/conan-install.sh
index 5fcf2b2b7601bdb72ba5d57313b9f1c2a454941b..dbf9200e69a2f12affb4d51ca4f24556422ad83b 100755
--- a/conan-install.sh
+++ b/conan-install.sh
@@ -9,5 +9,6 @@ if ! conan profile show corsika8 >/dev/null 2>/dev/null; then
     conan profile update settings.compiler.libcxx=libstdc++11 corsika8
   fi
 fi
-
+# force rebuild of cubicinterpolation by removing it first. (see discussion in MR509)
+conan remove cubicinterpolation/* --force
 conan install -pr corsika8 --build=missing ${DIR}