Fixed bug where the file reader was not being respositioned