The patch that I just submitted fixes the problem. However, I don't really know what the cause of the bug is, given that load-in-vicinity is undocumented and I don't fully understand its implementation. So maybe there is a better way to fix this.
Konrad.