Fix doc building failure on readthedocs