fix one input bug