wrong vars in template