Could you prepare a minimal compilable example reproducing the problem?