Fix up syntax errors in samples.