clearing the endoffsets instead of remove the filename