fix header generation for twitter