fixed minor bug in template caused by mismatch datetime/string types