Fixed stupid syntax mistakes

I really shouldn't code when I'm tired.