Thanks a lot for doing that, SPEEDY3003.
I'm a little bit confused about how that's possible. I've checked out the code logic and everything seems to check out, I'll dive into it a little bit deeper later. In any case, here's a save file where everything works fine.
Cheers.
https://mega.nz/file/QVJjUK7S#tkAvkB8imUwZy1CBMebO3qNxqHhTBlLmpadBwp0LPYA