I've noticed with gold, it tends to leave 1-2 ore in the inventory.

If it leaves only 1, it starts a loop of Right clicking and searching for the 'Deposit all' option.


Seems to be running...