Scoring mesh has a geometry boundary?

Dear experts,

I’m using Geant4 11.1.1 and it seems that there is a problem with the /score/mesh which are treated as geometry boundaries.

I want to save the particles at the boundary of my material. Then I used something like “point2->GetStepStatus() == fGeomBoundary” in the SteppingAction to select the tracks.

When I turn off the scoring, it seems OK. But if I turn on the scoring, all the particles that not only at the boundary but also in the material are recorded.

May I ask if it is expected? I don’t remember it was like this with Geant4 10.

Thanks very much in advance!