Fixed a bug with modifying 1st file in list