Modified a bug that if the first input tag is degenerated then always Matched