Fix: PE: Ensure instance numbers are preserved for cloned templates