closing cell tag matching fix