Fix remote fetching bug.