diff --git a/src/post_hoc.jl b/src/post_hoc.jl
index b071ad3250226b16d9ce530a0d0c15d24d23edbc..77308ad05135d478f0952c9ad71c0f780214589b 100644
--- a/src/post_hoc.jl
+++ b/src/post_hoc.jl
@@ -110,7 +110,7 @@ end
 function adjust_helper(block::AbstractBlock, used_names::UsedNamesType; kwargs...)
     params = []
 
-    for prop_name in propertynames(block)
+    for prop_name in fieldnames(typeof(block))
         push!(params, adjust_helper(getproperty(block, prop_name), used_names; kwargs...))
     end
     new_block = typeof(block)(params...)