Fix yaml emitter