After investigating the code, I found that the issue originates from this line
After investigating the code, I found that the issue originates from this line