Fixed copying bug.