Refilling car empties jerrycan

I tried out the Unload -> Fill Vehicle dialog on my jerrycan of 20000 gasoline units to refuel about 2300 gasoline worth of space in my tank. The tank filled correctly, but at the cost of all 20,000 gasoline in my can. The standard method (activating the repair dialog and filling the tank with f) works fine.

Do you have more than one gas tank? press ~ to turn on Debug and check the vehicle’s maximum gasoline capacity.

No, just a single gas tank. I tested again, seems to happen every time as long as there’s some fuel missing from the tank.

Well damn, I don’t know what to say XDD Looks like a bug to me… Good to know, gonna have to be more careful once I finally find enough gas to fill my stupid vehicle… XD