Fixes a copying error