fix packages in templates