Fix scoping of customer variable