I crafted a stable called "First one" and put a bear inside. Later, I renamed the stable to "One". However, when I view the bear inside the stable, its name was still the old one.
Workaround is to summon the bear, then put it in the stable again, after this the stable name is shown correctly.