Fast.java still prints duplicate lines