Had not close the file before the commit