fix bug for id input