fixed issues with copy