fixed broken file header in persistence-file when adding more than one object