fix url matching bug