fix some refs to foundation in templates