Fixed an incredibly stupid bug. No, really, it was so dumb it took me a long time to realize that's what could be wrong in the first place. I'm not feeling proud of myself right now.