Removed extra template lines for directives.