I have already solved the issue I was having but I am asking to get a deeper understanding of the problem.
Here is a link to the article that had a solution to my iss