I am getting the below error message but the code seems to works fine. As far as I can see there is no copy code.
A value is trying to be set on a copy of a slice fro