Typo in emitter, wrong enum type