I need help with a function but the game does not show any errors, so the ids of the objects are correct; the function runs completely normally but excludes certain lines of the function, meaning that it does not replace certain blocks, only some, I really don't know what it is, I hope you can help me.
fill ~~~ ~~~ nt:gold_block_brick replace gold_block
fill ~~~ ~~~ nt:emerald_block_brick replace emerald_block
fill ~~~ ~~~ nt:iron_block_brick replace iron_block
fill ~~~ ~~~ nt:netherite_block_brick replace netherite_block
fill ~~~ ~~~ nt:redstone_block_brick replace redstone_block
fill ~~~ ~~~ nt:lapis_block_brick replace lapis_block
fill ~~~ ~~~ diamond_block replace nt:diamond_block_brick
fill ~~~ ~~~ gold_block replace nt:gold_block_brick
fill ~~~ ~~~ emerald_block replace nt:emerald_block_brick
fill ~~~ ~~~ iron_block replace nt:iron_block_brick
fill ~~~ ~~~ netherite_block replace nt:netherite_block_brick
fill ~~~ ~~~ redstone_block replace nt:redstone_block_brick
fill ~~~ ~~~ lapis_block replace nt:lapis_block_brick
playsound block.stonecutter.use @p ~ ~ ~```