Hi!
I can fix this for you, but since I got some trouble from projects like this I need to clarify something:
1) Is this the only bug in your code or you need more fixes than keep the number of nodes and fixing that prompt?
I got other project that I fixed the bug but the problem had other problems and the users wanted me to fix everything, finally to send me a PDF to build another full software for $30, that's not fair.
Sorry for the verbose.
Any doubts just chat, can do this for you if you play fair.
Thanks!
- Vinicius