Reported in #5477.
Units with to Gathering when there is a problem in APPROACHING or WALKING states, which means they look for resources near their current position instead of near the target's position.
There's a few ways to fix this, but it seems convenient to use the WALKING state until units get close to the resource's last known position and _then_ switch to GATHERING to find new resources to gather from.