Minor bug fixed -> closing file reader object