Fixed it! I had to changed the BufferedWriter to PrintWriter... no clue why.