diff --git a/corsika/detail/framework/core/ParticleProperties.inl b/corsika/detail/framework/core/ParticleProperties.inl
index d15c561158e51e08a7b0cb7c681edd55b010bbcb..06bca17cf981b5f8b96300660c3aad713c7b0dc1 100644
--- a/corsika/detail/framework/core/ParticleProperties.inl
+++ b/corsika/detail/framework/core/ParticleProperties.inl
@@ -147,7 +147,7 @@ namespace corsika {
     return get_mass(Code::Proton) * Z + (A - Z) * get_mass(Code::Neutron);
   }
 
-  inline std::string_view get_nucleus_name(Code const code) {
+  inline std::string get_nucleus_name(Code const code) {
     size_t const A = get_nucleus_A(code);
     size_t const Z = get_nucleus_Z(code);
     return fmt::format("Nucleus_A{}_Z{}", A, Z);
diff --git a/corsika/framework/core/ParticleProperties.hpp b/corsika/framework/core/ParticleProperties.hpp
index 98cc681d39528548cd44e21715356da0476dd042..a07e93d55b9b95034e67ba8d5ecbe7c2af293c7f 100644
--- a/corsika/framework/core/ParticleProperties.hpp
+++ b/corsika/framework/core/ParticleProperties.hpp
@@ -207,7 +207,7 @@ namespace corsika {
    * @param code
    * @return std::string_view
    */
-  inline std::string_view get_nucleus_name(Code const code);
+  inline std::string get_nucleus_name(Code const code);
 
   /**
    * @brief convert PDG code to CORSIKA 8 internal code.