bugfix where template is attempting to cast epoch integer as a string