Bug fix

Batch metric key wasn’t working when “Avoid nesting” option was off.