fixed name saving bug