Fix loader to read line by line (instead of whole file)