Use the right variable in the template