Fix add tar

Fixes #6881
Can you tell us what happens now ?