fix bug for no name register