Fix issue reading from file