Fix bug with directives and function Array.