fix saving of peptides