Fixed #emit directives.