I had a strange negotiations just now. I offered a peace to the Hungarians, which they perceived as very demanding, and rejected it. I decided to make another offer (with the same diplomat, without exiting the diplomacy screen), and I noticed that their priorities changed from unknown to peace. I offered peace again. This time they considered my offer to be very generous, and happily excepted it

How can this be possible?

Screenshots:

Spoiler Alert, click show to read: