Thanks, sadly the bug happens too rarely for me to understand why it exist in the first place
The code is a mess because I rushed it so I'll probably rescript everything from the ground up