Fix bug: Some requests are sent to dispatcher without being recorded into visitedUrls.