Fix label conflicts in Sphinx documentation