resolve some minor bug for new input