fixed template sub in updatedoc