Fixed emitAttrs