Fixing up the template code at writers