Minor bug

Was trying to read an unwritten file.