Fixing use of $labels parameter.