Fix check for url