fixing directive patterns