Fix some syntax errors in robots code