fixed long outstanding bug concerning the transfer of the last files from a list