fix server input terminal