Fixed unneccessary overwriting of collected files