Fixed copy_failures calculation