Why replacing move with a copy?