Fix syntax errors in apple.