Fix doc build errors