updated to fix an issue with directives.