fix tostring to template options