Fix errors from sphinx build