BufferedReader bug fix