Fix errors in RTD build

Fix errors in RTD build