Fix broken conditional statements

This is what happens when you commit without testing, kids.