Fixes copy logic