Fix: Input malfunction when binary mode