Fixed package creation from template.