Fixed wrong code in saveCharacterization