Fixed random copy issue