Fixed reading the file