Bug fixing of the last function added (copy collection)