fix uninit 'set' in output code