Fix some syntax errors

I've come across a couple of syntax errors in the latest pull that needed fixing in order to run.