bug copying data