fix directive snippet