Removed unnecessary parameter passed to template callback
Removed unnecessary global  declaration inside of default template.