fixed :w in reader.c