so i managed to find a quick fix for travel loop. the problem seemed to be when the inventory was couting 9 free slots. If you would pick up enough items to miss the 9 free slots mark it would work normaly, so i changed two things. There are two parts of code i found where this is done.
in the first one i changed:
While (CountSlots() >= 10)
second one:
If (CountSlots() <= 9) Then
as if you would change only the second one, it would get stuck again when there would be 10 free slots. With these changes i found that it is working on both occasions.
I'm not sure if this is a sure fix but i have yet to encounter the same problem.