Please format your post with markdown syntax, such that the code is properly formatted, using ``` for encapsulation. You can format Math with latex syntax using $ encapsulation
Additionally, please reduce the code example, by removing any variable that is not needed to reproduce the error. (Follow the guidelines: Read before posting: How do I get my question answered?)