Bad Coding? Clearing Array right away in Contruction Node

I am using the construction script to spawn N amount of mesh instances and their specific locations are stored in an array.
When I reduce the number of meshes from 8 to 5, the array data was still at 8.

I just added a clear array node at the start of my script and it is working perfectly.
here is my question: is this bad coding? am I missing something that’ll hit me later?

No, this has been a ‘feature’ for several versions of the engine now. You have to clear the array if you’re using it more than once…