fix ShareTemplate (forgot def in from of function)