File overwrite bug fixed