support '*' match, fix bug.