that's why we usually ask for a minimum example code that will compile and show the issue at hand... with the Snippets shared by @jesse_a_b it is impossible to tell what's the issue as it's very likely not his real code.
@jesse_a_b ➜ please read How to get the best out of this forum
PS: as a i favour this time, I edited and added the code tags to the first post. Please use code tags when you post code in the future.