Fixed forgotten to read() call on the file