Fix template variables to use @application in correlation with JSON query.