fixed a input bug