Fix syntax errors

There are a couple syntax errors in the Erlang code. This fixes them.