Fix syntax errors in examples