ENH:fix a bug of sub repo