fixed weird bug with weird copy trick