# Rename All bug

I made a custom block and I wanted to "rename all" on an input variable, so I did, but it didn't work. Here's the console error:

Uncaught TypeError: Cannot read properties of null (reading 'body')
at CustomCommandBlockMorph.refactorVarInStack (blocks.js:1468:32)
at CommandBlockMorph.refactorVarInStack (blocks.js:1481:16)
at CommandBlockMorph.refactorVarInStack (blocks.js:1481:16)
at CommandBlockMorph.refactorVarInStack (blocks.js:1481:16)
at CommandBlockMorph.refactorVarInStack (blocks.js:1481:16)
at blocks.js:1475:15
at Array.forEach (<anonymous>)
at CSlotMorph.refactorVarInStack (blocks.js:1474:19)
at blocks.js:1475:15
at Array.forEach (<anonymous>)


Yeah, sorry, it's a longstanding bug that nobody's gotten around to fixing. Sorry!

Ah. It seemed like that when I was looking through the GitHub issues. BTW I always have a tab open to https://github.com/jmoenig/Snap/issues?&q=sort%3Aupdated-desc.

can you post the custom block definition whose input you wanted to use "rename all" on? I'd like to look into this. Thanks!

It was the renderList of this project, but now it works. However, when it didn't work, that block was a sprite-local block. It seems to work now, with it being a global block.

@jens look at this old msg

It was sprite local variable not