Correctly set variables for template

This formula seemed to have been missing some variables that caused the jinja rendering to fail. I corrected it here.