DOC: Fix renaming categories section
The categories were not correctly saved so that the renaming using the
dict-like object had no effect.

Thanks!

@WillAyd I think in this case for such a minor doc fix it is fine to directly open a PR (we mainly want to avoid people doing bug fixes which might not be fixes or new features we might not want to include)