Fix the bug in players' text input.