fix input bug(Newline char was transformed to Zero)