Could you provide a minimal compilable example which reproduces the problem?