Fixed syntax errors

There were a couple of syntax errors. One indentation error and a couple
of missing colons.