fix for manifest addition in end of file after network transfer.