Fix libfetch related code.