Fix ApplySyntax snippet