Fix issue with URL validation