fix bug:need to input name twice