Fixes a bug that prevented directives and filters from working