Fixed the read from the file