After many hours of looking through my code, I was able to find the problem. I had a missing bracket. Oy.