set topNode before mismatch check