template fixes, sequence for productId