fixed deprecated warnings in templates and duplicate task in instances.pp