Fix syntax errors in client and server