fix url check