Fixed build errors with latest fetch.