Correcting the directives used and fixing the directive