fix read by line