fix headers to string generation