remove url pattern with undefined function