thank for the answer of Gord Thompson in github.
Sorry, I did a minimal demo for test, and I did not reproduce the same problem, but it does exist in the actual program, so it is probably caused by other parts of the program. I will do another experiment to confirm where the problem lies before asking questions.