handle mis-closed filtered section tags