fix wild card issue with tail anchor