Fixed input bug with large file.