fixed API access count for invalid URLs