I am guessing this issue could have something to do with this;
Your code seems fine, I wouldn’t blame that.