Fix errors in conditional directives