fixing modules in templates