Fixed uninitialised 'tar' variable