collapse nodes to function does not always create the implicated local variables correctly

hi

this has occurred to me a number of times now
it does not always happen but it happens from time to time
when you collapse nodes in a function to a new function because the function is growing too big, the local variables seem if as they are created in the new function (you cant right click on them and create / ad them as local variables) and they appear as variables that are already created and not as variables that are not yet created
but they are not in the local variable tab and you quickly realize the issue when you try to compile

what i normally do in such cases is to copy delete and repaste the entire function to just have it register the local variables as not created yet

thanks