Fix various syntax errors.