Type checking for URL fixes #3