Escape $labels

This snippet actually didn't work properly without escaping.