Fixed bug in Template_module file