fixed variable declaration in reader.c